package com.goktech.pojo;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 订单实体类
 * </p>
 *
 * @author 初茶
 * @since 2023-05-14
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tb_orders")
@ApiModel(value="Orders对象", description="订单实体类")
public class Orders implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "订单号为订单主键，随机生成")
    @TableId(value = "o_number", type = IdType.AUTO)
    private String oNumber;

    @ApiModelProperty(value = "订单创建时间")
    private Date oTime;

    @ApiModelProperty(value = "订单总金额")
    private BigDecimal oAmount;

    @ApiModelProperty(value = "订单状态，0为未支付，1为已支付代发货，2为已收货待评价，3为已评价，4为已关闭")
    private Integer oState;

    @ApiModelProperty(value = "下单的用户id")
    private Long userId;

    @ApiModelProperty(value = "支付时间")
    private Date payTime;


}
